<?php


class VueAccueil{
	
	public static function afficher(){
		$tpl = new Template("tpl");
		$tpl->set_file("page","accueil.tpl");
		
		$tpl->set_block("page","message","msg");
		
		if (isset($_SESSION['message'])){
			$tpl->set_var("MESSAGE",$_SESSION['message']);
			unset($_SESSION['message']);
			$tpl->parse("msg","message",true);
		}
		
		$tpl->parse("PAGE","page");
		return $tpl->get("PAGE");
	} 
}
?>